1. /* sdmstdrf.cpp by K.Tsuru */
  2. // function ID = 315 DRADIX
  3. /*******************************************************************
  4. SDouble class
  5. It reforms to the standard form even if in the fixed point mode.
  6. 0.0000 0000 abcd efgh .... *DRADIX^e ---> 0.abcd efgh ... *DRADIX^E
  7. *******************************************************************/
  8. #ifndef SN_H
  9. #include "sn.h"
  10. #endif
  11. void SDouble::StdReform(int id){
  12. int shift = 1-(int)aTail;
  13. if(shift && Sign(id)){
  14. ShiftArray(shift); rdxExp += shift;
  15. }
  16. //the same processing as DoCutDown()
  17. if( 2u*(aHead+1) <= figure.size() ){
  18. figure.size( max(aHead+1, minArraySize), 1);
  19. }
  20. }

sdmstdrf.cpp : last modifiled at 2015/11/25 20:11:53(656 bytes)
created at 2017/10/07 10:21:14
The creation time of this html file is 2017/10/07 10:30:03 (Sat Oct 07 10:30:03 2017).